﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Detail.aspx.cs" Inherits="Workflow.BaoJia.Add" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
    
</head>
<body>
    <form id="form1" runat="server">
     <div>
       <table class="table table-bordered table-hover definewidth m10">
            <tr>
                <td class="tableleft">报价单号</td>
                <td><asp:TextBox ID="txtNo" runat="server" ReadOnly="true"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">报价等级</td>
                <td><asp:DropDownList ID="ddlClass" runat="server" Enabled="false">
                    <asp:ListItem>A</asp:ListItem>
                    <asp:ListItem>B</asp:ListItem>
                    <asp:ListItem>C</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft">报价产品类型</td>
                <td>
                   <%-- <asp:DropDownList ID="ddlType" runat="server" Enabled="false">
                    <asp:ListItem>新模报价</asp:ListItem>
                    <asp:ListItem>注塑报价</asp:ListItem>
                    <asp:ListItem>装配报价</asp:ListItem>
                    <asp:ListItem>改模报价</asp:ListItem>
                    <asp:ListItem>备件报价</asp:ListItem>
                    <asp:ListItem>外购件报价</asp:ListItem>
                    <asp:ListItem>冲压报价</asp:ListItem>
                    </asp:DropDownList>--%>
                    <asp:CheckBoxList ID="cblType" runat="server" RepeatColumns="5" Enabled="false" RepeatDirection="Horizontal" CssClass="table table-bordered table-hover definewidth m10">
                        <asp:ListItem>新模报价</asp:ListItem>
                        <asp:ListItem>注塑报价</asp:ListItem>
                        <asp:ListItem>装配报价</asp:ListItem>
                        <asp:ListItem>改模报价</asp:ListItem>
                        <asp:ListItem>备件报价</asp:ListItem>
                        <asp:ListItem>外购件报价</asp:ListItem>
                        <asp:ListItem>冲压报价</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr id="otherType" runat="server">
                <td class="tableleft">其他报价产品类型</td>
                <td><asp:TextBox ID="txtType" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">客户信息</td>
                <td><asp:DropDownList ID="ddlCustomer" runat="server" Enabled="false">
                    <asp:ListItem>UAES上海</asp:ListItem>
                    <asp:ListItem>UAES无锡</asp:ListItem>
                    <asp:ListItem>Bosch国外</asp:ListItem>
                    <asp:ListItem>Schneider</asp:ListItem>
                    <asp:ListItem>IRISO</asp:ListItem>
                    <asp:ListItem>TCS</asp:ListItem>
                    <asp:ListItem>Amphenol</asp:ListItem>
                    <asp:ListItem>AR</asp:ListItem>
                    <asp:ListItem>河北美泰</asp:ListItem>
                    <asp:ListItem>DELPHI</asp:ListItem>
                    <asp:ListItem>Bosch国内</asp:ListItem>
                    <asp:ListItem>TE</asp:ListItem>
                    <asp:ListItem>SIEMON</asp:ListItem>
                    <asp:ListItem>UAES西安</asp:ListItem>
                    <asp:ListItem>UAES芜湖</asp:ListItem>
                    <asp:ListItem>Hilite</asp:ListItem>
                    <asp:ListItem>Hella</asp:ListItem>
                    <asp:ListItem>湖州京昌</asp:ListItem>
                    <asp:ListItem>江苏奥利威</asp:ListItem>
                    <asp:ListItem>杭州乐荣</asp:ListItem>
                    <asp:ListItem>双林</asp:ListItem>
                    <asp:ListItem>西安昆仑</asp:ListItem>
                    <asp:ListItem>上海逸航</asp:ListItem>
                    <asp:ListItem>苏州汇川技术有限公司</asp:ListItem>
                    <asp:ListItem>天津斯巴克瑞</asp:ListItem>
                    <asp:ListItem>扬州奥力威</asp:ListItem>
                    <asp:ListItem>其他</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr id="otherCustmoer" runat="server">
                <td class="tableleft"></td>
                <td><asp:TextBox ID="txtCustomer" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">模穴要求</td>
                <td><asp:TextBox ID="txtMoldRequire" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">模具划分</td>
                <td><asp:DropDownList ID="ddlMoldClass" runat="server" Enabled="false">
                    <asp:ListItem>生产模</asp:ListItem>
                    <asp:ListItem>商品模</asp:ListItem>
                    <asp:ListItem>样品模</asp:ListItem>

                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft">需求量(K/年)</td>
                <td><asp:TextBox ID="txtRequirement" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft">预计销售额(万元/年)</td>
                <td><asp:TextBox ID="txtSales" runat="server" Enabled="false"></asp:TextBox></td>
            </tr>
           <tr>
                <td class="tableleft">是否成功</td>
                <td><asp:DropDownList ID="ddlSuccess" runat="server" Enabled="false">
                    <asp:ListItem Value="P">待定</asp:ListItem>
                    <asp:ListItem Value="Y">成功</asp:ListItem>
                    <asp:ListItem Value="N">失败</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tableleft"></td>
                <td>
                    <asp:Button ID="BtnSubmit" CssClass="btn btn-primary" runat="server" Text="确定" OnClientClick="return Validate()" OnClick="BtnSubmit_Click"/>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script type="text/javascript">
        //$(document).ready(function () {
            $("#ddlCustomer").change(function () {
                if ($(this).val() == '其他') {
                    $("#otherCustmoer").show();
                } else {
                    $("#otherCustmoer").hide();
                }
            });
        //});
        function Validate() {
            if ($("#txtNo").val().length > 50) {
                alert('报价单号不能超过50位');
                return false;
            }
            //else if ($("#txtCustomer").val().length > 50) {
            //    alert('客户信息不能超过50位');
            //    return false;
            //}
            else if (isNaN($("#txtRequirement").val())) {
                 alert('需求量必须是数字');
                 return false;
            }
            else if (isNaN($("#txtSales").val())) {
                alert('预计销售额必须是数字');
                return false;
            }
        }
    </script>
</body>
</html>
